package week03.starbucks_ex;

public class Mocha implements IDrink {
    protected  IDrink iDrink;
    public Mocha(IDrink iDrink){
        super();
        this.iDrink=iDrink;
    }
    private double price = 22;
    @Override
    public double getPrice() {
        System.out.println("Mocha: "+price);
        iDrink.getPrice();
        return price;
    }
}
